package com.cib.process.bean;

public enum ChannelType {
    IVR,WBG;

    /**
     * 枚举类的values()将枚举转换为数组
     * @param token
     * @return
     */

    public static ChannelType instanceOf(String token) {
        ChannelType[] values = ChannelType.values();
        for (ChannelType type : values) {
            if (type.equals(token)){
                return type;
            }
        }
        return  null;
    }
}
